package org.xb.ControlAccessProxy;

import com.sun.org.apache.regexp.internal.RE;

/**
 * @Author
 * @Description
 * @Date created in 11:44 2023/12/7
 */
public class Main {
    public static void main(String[] args) {
        //需要代理的实体类
        RealUserService realUserService = new RealUserService();
        ProxyUserService proxyUserService = new ProxyUserService( realUserService);
        proxyUserService.performAction("admin");
        proxyUserService.performAction("test");
    }
}
